package com.miyu.client1.dao.book;

import com.miyu.client1.pojo.book.BookRule;
import com.miyu.client1.utils.baseDao.BaseDao;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface bookDao extends BaseDao<BookRule,String> {
    @Override
    List<BookRule> findAll();

    public default List<BookRule> queryBookRule (){
        StringBuffer sql = new StringBuffer();
        sql.append(" from BookRule where sysIsStop = '0' ");
        List<BookRule> br = this.queryListByHql(sql.toString());
        return br;
    }

}
